

export const Getstatus = (status) => {
    let statusText = {
        ClassName: "",
        Text: ""
    };
    switch (status) {
        case 0:
            statusText.ClassName = "item bgc-bule";
            statusText.Text = "空闲";
            return statusText
        case 1:
            statusText.ClassName = "item bgc-green";
            statusText.Text = "入场授权未取";

            return statusText;
        case 2:
            statusText.ClassName = "item bgc-green";
            statusText.Text = "入场授权已取";
            return statusText
        case 3:
            statusText.ClassName = "item bgc-green";
            statusText.Text = "离场授权未取";
            return statusText
        case 4:
            statusText.ClassName = "item bgc-green";
            statusText.Text = "结账未出";
            return statusText
        case 5:
            statusText.ClassName = "item bgc-green";
            statusText.Text = "结账已出";
            return statusText
        case 6:
            statusText.ClassName = "item bgc-red";
            statusText.Text = "维修";
            return statusText
        case 7:
            statusText.ClassName = "item bgc-red";
            statusText.Text = "禁用";
            return statusText
        case 8:
            statusText.ClassName = "item bgc-grey";
            statusText.Text = "脏柜";
            return statusText
        case 9:
            statusText.ClassName = "item bgc-grey";
            statusText.Text = "出场超时";
            return statusText

        default:
            return '未知'
    }
}








